<?php

namespace app\common\validate;

use think\Validate;

class Oauth extends Validate
{
    protected $rule = [
        'openid' => 'require|max:100',
        'parent_id' => 'integer',
        'share_key' => 'max:50',
        'nickname' => 'max:100',
        'phone' => 'mobile',
        'integral' => 'integer',
    ];
}